第0章 IDE基础

VS code

建议学习期间使用vs code IDE:轻量,便捷

  1. 配置vs code for swift:https://medium.com/@kcheart/在-vscode-安裝-swift-5-2-編寫程式功能-c585ec1e0ae2

  2. 输出配置:
    {
    "code-runner.clearPreviousOutput": true,
    "terminal.integrated.scrollToBottom": true
    }

  3. 修改快捷键 run code (需要安装vs code插件 Code Runner

Xcode

  1. Build: command+b
  2. Run: command+R
  3. clean built cache: command+shift+k
  4. refactor indent: control+i (with highlight code block)
  5. edit all columns: option+left mouse
  6. quick open: command+shift+o